package com.qupai.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PtShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //名称
    private String name;

    //用户id
    private Long userId;

    //奖品id
    private Long prizesId;

    //活动id
    private Long activitiesId;

    //组织id
    private Long organizationsId;

    //学院id
    private Long collegesId;

    //数量
    private Long number;

    //金额
    private BigDecimal amount;

    //图片
    private String image;

    //商品描述
    private  String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
